﻿<!DOCTYPE html>
<html><head><meta charset="UTF-8">
<title></title>
<script src="js/base.js"></script>
<script>
	onload = function(){
		var content = document.getElementById("content");
		content.onkeydown = function(e){
			var e = e || event;
			console.log("keydown="+e.keyCode);
		}
		content.onkeypress = function(e){
			var e = e || event;
			console.log("keypress="+e.which||e.keyCode);
		}
		content.onkeyup = function(e){
			var e = e || event;
			console.log("keyup="+e.keyCode);
		}
	}
</script>
</head>
<body>
	<input type="text" id="content"/>
</body>
</html>